<extend name='Block/Admin_none'/>
<block name="content">
<style>
   .maitale tr{height:40px; line-height: 40px; margin-right:10px;}
</style>
<div>
   <div>
      <form action='{:U("index")}' method="post" name='form1' class='form1'>
         <table style="width:500px" class="maitale fl">
            <tr>
                <td align="right">收件人邮箱：</td>
                <td><input type='text' name="toemail" class="form-control" palceholder="收件人邮箱" /></td>
            </tr>
            <tr>
                <td align="right">邮件标题：</td>
                <td><input type='text' name="tittle" class="form-control" palceholder="邮件标题" /></td>
            </tr>
            <tr>
                <td align="right">邮件内容：</td>
                <td>
                      <textarea name="content" placeholder='邮件内容' class="form-control" style="height:400px"></textarea>
                </td>
            </tr>
            <tr>
                <td align='center' colspan='2'>
                   <input type='button' class="btn btn-primary" id="sendemail" value='发送邮件'/>
                </td>
            </tr>
         </table>
         <div class="fl" style="margin-left:10px">
               ddhhdsdhs
         </div>
         </form>
   </div>
   
</div>
<script type="text/javascript">
  $(document).ready(function(){
    $("#sendemail").click(function(){
          var url=$(".form1").attr('action');
          var da=$(".form1").serialize();
          $.post(url,da,function(data){
            if(data){
                alert(data);
            }
          });
          return false;
    });
  });
</script>
</block>
